package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bean.PestBean;

/**
 * @author RJ
 * @date 2022/9/14 15:31
 */
public interface IPestService extends IService<PestBean> {
    //添加新虫害
    void addPest(PestBean pest);

    //查看详细信息
    PestBean getPestInfo(Integer pestId);

    //根据害虫名和寄主查询虫害信息，分页显示
    IPage<PestBean> cutPestByItem(Integer pageNo, Integer pageSize, String pestName, String pestHost);
}
